import request from '@/utils/request'

// 查询诊断详细记录列表
export function listDiagnosisdetail(query) {
  return request({
    url: '/system/diagnosisdetail/list',
    method: 'get',
    params: query
  })
}

// 查询诊断详细记录详细
export function getDiagnosisdetail(companyId) {
  return request({
    url: '/system/diagnosisdetail/' + companyId,
    method: 'get'
  })
}

// 新增诊断详细记录
export function addDiagnosisdetail(data) {
  return request({
    url: '/system/diagnosisdetail',
    method: 'post',
    data: data
  })
}
// 新增诊断详细记录
export function batchAddDiagnosisdetail(data) {
  return request({
    url: '/system/diagnosisdetail/batch',
    method: 'post',
    data: data
  })
}

export function autoScoring(data) {
  return request({
    url: '/system/diagnosisdetail/autoscoring',
    method: 'post',
    data: data
  })
}

// 修改诊断详细记录
export function updateDiagnosisdetail(data) {
  return request({
    url: '/system/diagnosisdetail',
    method: 'put',
    data: data
  })
}

// 删除诊断详细记录
export function delDiagnosisdetail(companyId) {
  return request({
    url: '/system/diagnosisdetail/' + companyId,
    method: 'delete'
  })
}
